import React from 'react'
import { connect } from 'dva'

function Com({ title }) {
    return (
        <div>
            Com -- { title }
        </div>
    )
}

const mapStateToProps = (state) => {
    const { home } = state
    const { title, list } = home
    return {
        title,
        list
    }
}

export default connect(mapStateToProps)(Com)
